package com.pine.dao.pineframework.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pine.common.database.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;


/**
 * <p>
 * 用户角色表
 * </p>
 *
 * @author pine manage
 * @since 2024-08-12
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_role_user")
@Schema(name = "SysRoleUser", description = "用户角色表")
public class SysRoleUser extends BaseEntity<Long> implements Serializable {

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1069251768731658988L;

    @Schema(description = "角色ID")
    private Long roleId;

    @Schema(description = "用户ID")
    private Long userId;
}
